class Confirmer < ActionMailer::Base
  #will be this once the domain is purchased
  #default_url_options[:host] = "temdb.com"
  default_url_options[:host] = "76.179.28.166:3000"

  def password_reset_instructions(user)
    subject	"Password Reset Instructions"
    from	"noreply@temdb.com"
    recipients	user.email
    sent_on	Time.now
    body	:edit_password_reset_url => edit_password_reset_url(user.perishable_token)
  end  

  def activation_instructions(user)
    subject	"Please confirm your request for The Everything Music Database"
    from 	"noreply@temdb.com"
    recipients	user.email
    sent_on	Time.now
    body	:account_activation_url => activate_url(user.perishable_token)
  end

  def welcome(user)
    subject	"Welcome to The Everything Music Database"
    from	"noreply@temdb.com"
    recipients	user.email
    sent_on	Time.now
    body	:root_url => root_url, :username => user.username
  end
end
